<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.14"></script>
    <title>Document</title>
</head>
<body>
    <div id="app">
        <ul>
            <!-- <li v-if='show'>988</li>
            <li v-else-if='two'>388</li>
            <li v-else>688</li> -->
            <li v-for='(item,index) in arr'>{{index}}.{{item}}</li>
        </ul>
        <p v-show='show'>默默彳亍</p>
        <button @click='show=!show'>显示隐藏</button>
    </div>
    <script>
        new Vue({
            el:'#app',
            data(){
                return{
                   show:false,
                   two:true,
                   arr:['df','s','sd','htg'],
                   list:[
                       {
                           name:'bb',
                           age:45
                       }
                   ]
                }
            }
        })
    </script>
</body>
</html>